package com.bookstore.service.serviceImpl;

import com.bookstore.dao.ViewItemsMapper;
import com.bookstore.model.Book;
import com.bookstore.service.ViewItemsService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ViewItemsServiceImpl implements ViewItemsService {
    @Resource
    private ViewItemsMapper viewItemsMapper;
    @Override
    public List<Book> find(Book book) {
        return viewItemsMapper.find(book);
    }

    @Override
    public List<Book> sales(Book book) {
        return viewItemsMapper.sales(book);
    }

    @Override
    public List<Book> PriceRange(Book book) {
        return viewItemsMapper.PriceRange(book);
    }

    @Override
    public List<Book> WellReceived(Book book) {
        return viewItemsMapper.WellReceived(book);
    }

    @Override
    public List<Book> asc(Book book) {
        return viewItemsMapper.asc(book);
    }

    @Override
    public List<Book> comprehensive(Book book) {
        return viewItemsMapper.comprehensive(book);
    }

    @Override
    public List<Book> desc(Book book) {
        return viewItemsMapper.desc(book);
    }
}
